package net.alan.modules.controller;

import io.swagger.annotations.Api;
import net.alan.modules.aspect.NotAuthorize;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Author 李岩飞
 * Email eliyanfei@126.com
 * 2017/11/21
 */
@Api(tags = "公开资源")
@Controller
@RequestMapping(value = "open")
public class OpenController extends BaseController {
    private static final Logger logger = LoggerFactory.getLogger(OpenController.class);


    @NotAuthorize
    @RequestMapping(value = "note/{id}", method = RequestMethod.GET)
    public String getNote(@PathVariable("id") String id, Model model) {
        model.addAttribute("id", id);
        return "web/note/show";
    }


}
